import request from "@/api";
import { BaseRet } from "@/api/response";

class CommonApi {
  /**
   * 查询生成主键
   * @returns
   */
  static async GetLongId(): Promise<BaseRet> {
    return await request({
      url: `Common/GetLongId`,
      method: "get",
    });
  }

  /**
   * 查询生成主键
   * @param num
   * @returns
   */
  static async GetLongIds(num: number): Promise<BaseRet> {
    return await request({
      url: `Common/GetLongId/${num}`,
      method: "get",
    });
  }
}

export default CommonApi;
